package com.collect.tanzania.zhiScene.zhiCollection.zhiGroup.zhiPerformance.zhiSort;

import com.collect.tanzania.zhiBean.zhiReceive.ZHIRPerfermanceGroupRealTimeEntity;

import java.util.Comparator;

public class ZHIGroupRealTimeCompareByTotalNumDES implements Comparator<ZHIRPerfermanceGroupRealTimeEntity> {
    @Override
    public int compare(ZHIRPerfermanceGroupRealTimeEntity o1, ZHIRPerfermanceGroupRealTimeEntity o2) {
        if (o1.getTotalNum() < o2.getTotalNum()) {
            return -1;
        } else if (o1.getTotalNum() < o2.getTotalNum()) {
            return 0;
        } else {
            return 1;
        }
    }
}
